package test;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class test04 {
        public static void main(String[] args) throws IOException {
            Scanner scanner =new Scanner(System.in);
            System.out.println("输入要删除的目录");
            String address =scanner.nextLine();
            File dir =new File("./"+address);
            if(dir.exists()){
                dir.delete();
            }

        }

}
